package com.atguigu.order.util;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @title: WXPayLogProperties
 * @Author danghailiang
 * @Date: 2022/10/10 16:20
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties("wx.pay")
public class WXPayLogProperties  implements InitializingBean {
    private String appid;
    private String partner;
    private String partnerkey;
    private String notifyurl;


    public static String APPID;
    public static String PARTNER;
    public static String PARTNER_KEY;
    public static String NOTIFY_URL;


    @Override
    public void afterPropertiesSet() throws Exception {
        APPID=this.appid;
        PARTNER=this.partner;
        PARTNER_KEY=this.partnerkey;
        NOTIFY_URL=this.notifyurl;
    }
}
